T
specifies the type of the value to return
Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Generic GetValue(DicomElement,T,GetValueDelegate) Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class > GetValue Method : Generic GetValue(DicomElement,T,GetValueDelegate) Method



element
an item in the data set
defaultValue
a value of type T that is returned if the actual value cannot be retrieved.
getValueDelegate
an optional delegate that converts that extracted data to any type
element
an item in the data set
defaultValue
a value of type T that is returned if the actual value cannot be retrieved.
getValueDelegate
an optional delegate that converts that extracted data to any type
Returns the value of a DICOM element

Syntax

Visual Basic (Declaration) 
Overloads Public Function GetValue(Of T)( _
   ByVal element As DicomElement, _
   ByVal defaultValue As T, _
   ByVal getValueDelegate As GetValueDelegate _
) As T
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim element As DicomElement
Dim defaultValue As T
Dim getValueDelegate As GetValueDelegate
Dim value As T
 
value = instance.GetValue(Of T)(element, defaultValue, getValueDelegate)
C# 
public T GetValue<T>( 
   DicomElement element,
   T defaultValue,
   GetValueDelegate getValueDelegate
)
C++/CLI 
public:
T GetValuegeneric<typename T>
( 
   DicomElement^ element,
   T defaultValue,
   GetValueDelegate^ getValueDelegate
) 

Parameters

element
an item in the data set
defaultValue
a value of type T that is returned if the actual value cannot be retrieved.
getValueDelegate
an optional delegate that converts that extracted data to any type

Type Parameters

T
specifies the type of the value to return

Return Value

a value of type T that is the value of the DICOM element

Example

For an example, refer to GetValueDelegate.

Remarks

For information on this method, see GetValue.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features